import Vue from 'vue'
import Router from 'vue-router'
import MailList from '@/components/MailList'
import MailBox from '@/components/MailBox'
import MailDetail from '@/components/MailDetail'
import SendMail from '@/components/SendMail'
import ClusterInfo from '@/components/ClusterInfo'


Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'MailList',
            component: MailList
        },
        {
            path: '/mail/send',
            name: 'SendMail',
            component: SendMail
        },
        {
            path: '/mailBox/all',
            name: 'MailBox',
            component: MailBox
        },
        {
            path: '/mail/detail/:id',
            name: 'MailDetail',
            component: MailDetail
        },
        {
            path: '/server/clusterInfo',
            name: 'ClusterInfo',
            component: ClusterInfo
        }
    ]
})